import Vue from "vue";
import Vuex from "vuex";
Vue.use(Vuex);
const state = {
    count: 0,
  },
  actions = {
    add(context, value) {
      context.commit("ADD", value);
    },
  },
  mutations = {
    ADD(state, value) {
      //console.log("AB", state, value);
      state.count += value;
    },
  },
  getters = {};
export default new Vuex.Store({ state, actions, mutations, getters });
